package com.lsj.dto.sys;

import com.lsj.core.validate.Update;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * @Author:lin.sj
 * @Data:2021/7/8 21:49
 * @Desc: 菜单排序更新dto
 */
@Data
@Accessors(chain = true)
public class MenuSortDto {

    @NotNull(message = "菜单主键不能为空",groups = {Update.class})
    private Long id;


    @NotNull(message = "旧排序信息不能为空",groups = {Update.class})
    private Integer oldSort;

    @NotNull(message = "新排序信息不能为空",groups = {Update.class})
    private Integer newSort;

    @NotNull(message = "菜单层级信息不能为空",groups = {Update.class})
    private Integer level;




}
